var auth = function() {
    return {
        callShowNavData : function() {
            JsonC.callSfAction('auth/showNavData');
        },
        callLogin : function() {
            JsonC.submitForSfAction('auth/login',{},'authForm','general-loading')
        },
        callLogout : function() {
            UtilC.sfRedirect( {path:'auth/logout'} );
        },
        showUserData : function(json) {
            console.log(json);
        },
        displayMainMenu : function (json) {
            $("#mainMenu").html(json.data);
        }
    };
}();


